{include file="app/common/templates/header.tpl}
{include file="pagelets/templates/commonmenu.tpl"}

<script type="text/javascript">
var JSONRPC_URL = '{$JSONRPC_URL}';

{literal}
Event.observe(window, 'load', function() {
	$('addButton').observe('click', function(event) {
		$('action').value = 'AddButtonClicked';
		Event.element(event).form.submit();
	});
});
{/literal}
</script>


<p>
<div>
<form {$mainadd.attributes}>
{$mainadd.hidden}

<table>
<tr><td class="formLabel">{$mainadd.firstName.label}</td><td>{$mainadd.firstName.html} <span class="error">{$mainadd.firstName.error}</span></td></tr>
<tr><td class="formLabel">{$mainadd.lastName.label}</td><td>{$mainadd.lastName.html} <span class="error">{$mainadd.lastName.error}</span></td></tr>
<tr><td class="formLabel">{$mainadd.gender.label}</td><td>{$mainadd.gender.html} <span class="error">{$mainadd.gender.error}</span></td></tr>
<tr><td class="formLabel">{$mainadd.birthDate.label}</td><td>{$mainadd.birthDate.html} <span class="error">{$mainadd.birthDate.error}</span></td></tr>
<tr><td class="formLabel">{$mainadd.deathDate.label}</td><td>{$mainadd.deathDate.html} <span class="error">{$mainadd.deathDate.error}</span></td></tr>
</table>
<p>
{$mainadd.addButton.html}
</form>
</div>
{include file="app/common/templates/footer.tpl}